package com.my.test.java.two.moredata.datas.rule;

import java.util.Collection;

public class TableRule implements ITableRule{

	@Override
	public String doEqualSharding(Collection<String> availableTargetNames, String cloum, Integer value) {
		for (String each : availableTargetNames) {
            if (each.endsWith(value % 2 + "")) {
                return each;
            }
        }
        throw new IllegalArgumentException();
	}

}
